 //登录成功存储数据
 const localStorageUserinfo = (token) =>{
    localStorage.setItem("token",token);
 }
 
 //退出登录移除方法
 const removeUserInfo = () => {
    localStorage.removeItem("token");
    localStorage.removeItem("userInfo");
    localStorage.removeItem("role");
};

//获取token
const getToken = () =>{
    return localStorage.getItem('token')
     
}

export {
    removeUserInfo,
    localStorageUserinfo,
    getToken
}